package com.hmys.api.response;

/**
 * Created by chen365 on 2017/10/18
 */
public enum ResultCode {
    SUCCESS(0, "成功。"),
    FAIL(1, "失败。"),
    ERROR(2, "系统错误。"),
    DATA_NULL(3, "空数据。"),
    EMPTY_PHONE(4, "手机号不能为空。"),
    EMPTY_PASSWORD(5, "密码不能为空。"),
    FAIL_LOGIN(6, "登陆失败。"),
    ERROR_PHONE(7, "手机号不正确。"),
    EMPTY_SMS_VALIDATE_CODE(8, "短信验证码不正确。"),
    EMPTY_MSG_ID(9, "短信验证码ID不能为空。"),
    NOT_EXIST_USER(10, "用户不存在。"),
    ERROR_VALIDATE_CODE(11, "验证码错误。"),
    VALIDATE_CODE_FAILED(12, "验证码验证失败，请重试。"),
    EMPTY_NAME(13, "姓名不能为空。"),
    ERROR_EMAIL(14, "邮箱格式不正确。"),
    PHONE_REGISTERED(15, "手机号已经注册。"),
    EMPTY_SMS_TYPE(16, "短信类型不正确。"),
    REGISTERED_PHONE(17, "手机号未在本网站注册。"),
    NO_DATA_WAS_FOUND(18, "未查询到数据。"),
    NOT_FOUND(19, "未找到。"),
    ERROR_PARAM(20, "参数错误。"),
    HAVE_DELETED(21, "数据已经删除。"),
    EMPTY_EMAIL(22, "邮箱不能为空。"),
    EMPTY_MESSAGE(23, "留言内容不能为空。"),
    EMPTY_LOCATION(24, "所在地不能为空。"),
    USER_IS_NOT_LOGIN(25, "用户未登陆。"),
    NO_HEAD(26, "未设置头像。"),
    EMPTY_PHOTO(27, "请选择图片。"),
    EMPTY_EXPO(28, "请选择展会。"),
    EMPTY_EXPO_PERSONNEL_COUNT(29, "参加展会人数不能小于1位。"),
    ERROR_SEND_EMAIL(30, "邮件发送错误。"),
    NON_JOB(31, "应聘职位不存在。"),
    LOGIN_TIMEOUT(32, "未登陆或登陆已超时。"),
    ERROR_UPLOAD(33, "上传失败"),
    EMPTY_UPLOAD(34, "头像不能为空"),
    ERROR_FILE_FORMAT(35, "头像格式错误"),
    EMPTY_COUNTY(36, "国家不能为空"),
    EMPTY_SOURCE(37,"报名来源不能为空" ),
    EMPTY_CHANNEL(38, "报名渠道不能为空");

    /**
     * 状态
     */
    private Integer status;

    /**
     * 提示信息
     */
    private String msg;

    ResultCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
